package com.atguigu.gmall.weball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author lfy
 * @Description
 * @create 2023-07-28 9:44
 */
@Controller
public class LoginControllr {

    @GetMapping("/login.html")
    public String login(@RequestParam("originUrl") String originUrl,
                        Model model){

        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
